package ast;

import java.util.ArrayList;

public class ParallelProcess extends Process {
	
	private ArrayList<Process> processes;
	
	public ParallelProcess(ArrayList<Process> procs)
	{
		processes = procs;
	}
	
	public ArrayList<Process> getProcesses()
	{
		return processes;
	}

	public String toString(int indent)
	{
		String res = "";
		for (int i = 0; i < processes.size(); i++) {
			res += processes.get(i).toString(0);
			if (i != processes.size() - 1)
				res += " | ";
		}
		
		return res;
	}
}
